Kinda sounds like what you had. Like your body was definitely trying to get rid of something. Many cases strong sassafras tea maybe with ginger for stomach helps. And salt and natural electrolytes. Least it did me when I got it decades ago. I felt better in minutes but before that had all you had and turned really pale plus sudden high pitched tinnitus and vision issues feeling your gonna die. Was given the sassafras and felt like it saved my life.
I was hoping you finally got a full nights sleep. Just not the kind you don’t wake up from.