It definitely helps having your doctors in the know about all this, so hopefully you can try again. youe thyroid can really mess with you if it is messed up.
If your thyroid stuff is all ok then I suspect your scale that is measuring body fat may need to be recalibrated. The numbers seem weird for such a short time fasting and a fat fast at that should mean that your body is burning the fuel you are eating along with fat on your body. Did you test your ketones during this time? That might be helpful information to know.
But also, in general the body is pretty smart. If it needs energy the last place it goes is eating muscle. Here is a good article
https://intensivedietarymanagement.com/fasting-and-muscle-mass-fasting-part-14/
on this topic from Dr. Fung and his IDM practice where his main focus for his patients (I am a long distance patient myself) is fasting and low carb high fat. I lift usually 3 days a week, swim a day and cycle a day. While fasting 3 days a week 36 hours each time. I have noticed only getting stronger and more defined. Also there is all the weight lifters who are trying to time their lifts at the 24 hour fasted mark, because that is when growth hormone is highest. (So they can get bigger muscle gains) I have a body composition from before I started with IDM just over 2 months ago. I probably should go and get another one. I have lost 11lbs and 4 inches in my waist. So it will be interesting to see how that has changed. Anyway, I suspect your scale was messing with you.