Hi there ~
Thank you for your question. I understand your concern. I also think that you might be having what we call migraines. It does seem to affect your functioning. There are many medications that help with the condition and you should consult a psychiatrist
to get help with the condition. I hope this helps.
Take care and have a lovely day!