Sounds like you have too much liver heat. In this condition tje liver heat rises to the head. The heat is probably the cause, not the castor oil.
I have this condition myself.
Get yourself to an experienced doctor of Acupuncture and Chinese Traditional Medicine. This is a common condition and easily treatable.
Eat a cooling diet: tofu, fruit, veggies, greens, rice, a little fish. Steer clear of spicy hot foods and red meat or dairy. Drink lots of pure water.