Hi Welcome to HCM.
Your history is suggestive of eye and neck dystonia
secondary to whiplash injury(which is very common).The injury can often result in observable damage in the brain that is diagnosed using neuroimaging
techniques(MRI scans).Trauma induced blepharospasm
persists even during sleep and comes in episodes.
The treatment and the progress of dystonia ,depends upon the site of brain damage .
Since yours is an acute onset dystonia
,I would suggest to get MRI done immediately and consult an ophthalmologist who can confirm this and decide on injection for immediate relief.