The best way i can think of is to pull a "tom sawyer" and get someone else to paint the ceiling! sound like a simple positional thing that should go away on its own fairly quickly.
Massage, heat and otc drugs like Ibuprofen and tylenol (acetaminophen) might help. If it doesn't get better after a couple of days i would go see your primary care doctor.
Would you like to video or text chat with me?