You have to take ibuprofen with something in your tummy, even if it's just part of a bar. Perhaps you could use a bar just for taking with the tablets in sections.
Hows the tooth?
And don't be a heroic silly bat! You've had major work done, if you're in pain, bugger the ketosis, if you do fall out, you can soon get back into it!