I don’t see an illegal or prescription only (depending state) and pricier alternative to remarkably safe and cheap nsaids as all that feasible. Especially of your talking about something usually used for chronic cancer pain.
Just follow the directions on the label. It was already known that you shouldn’t take large doses of ibuprofen for long periods of time due to the risk of gi damage. Which is lower than the risk of the same from aspirin and naproxen. And lower than the risk of liver damage from acetomenophen. These things aren’t typically strong enough to used to treat chronic pain to begin with. And they’re anti-inflatories rather than true pain killers.