HI, thanks for using healthcare magic
There is a condition called cyclic vomiting
syndrome. It is characterised by episodes of severe nausea
and vomiting that lasts for hours or days, that alternate with intervals where no symptoms are experienced.
This is possibly the cause of your symptoms. There are generally 4 phases: symptom free phase, prodrome (where the nausea starts), vomiting and then recovery.
Treatment can vary.
You may want to consider speaking to your doctor about this possibility.
I hope this helps