Some sample packs of prevacid and naprosyn (naproxen) for controlling arthritis withoutthis all in my head or can insomnia be a side effect of prilosec?

Yes. Sleep deprivation is one of the more common side effects. Fortunately, it happens in a minority of patients taking the drug. However, you should ask your doctor if you could safely continue the Naproxen without the Prilosec to see if the sleep disturbance improves.