I have a pinched nerve in my shoulder. I took aleeve and then 5 hours later took ibuprofen 800 when can I take aleeve again?

Ibuprofen. I would take 6-8 hours later if needed.
You shouldn't. You should not mix these two as they are similar anti inflammatory drugs and can cause severe side effects Pick one of the meds and use it exclusively, either the Motrin 2 or3 daily or alive 1-2 tables twice daily.