The heartbeat thing is not abnormal. One reason for total rest.
I always get that type smelly, bile like water diahera (Always). the fact that you lost it in bed has nothing to do with that. You have to realize a little gas may be that diahera.
Muscle pain is not unusual as well. You could take a magnesium/ca supplement if you want. Or just stop the fast.
All those symptoms will go away.
You need to have someone to consult with to rule out other issues, howe er from my experience and my wife's experience, one or the other of us get similar experiences every time we fast.