My friend has been doing ecstasy with other possible drugs (cocaine, weed, pills) He is now in rehab. ?

Hi, my friend has been doing ecstasy combined with other drugs, (possible cocaine,weed,other pills). A couple nights ago he just started running super fast while he was not on anything and then collapsed and almost passed out. Also last night, he started screaming randomly and almost passed out and had to get an IV and 3 adrenaline shots. Is this because of the drugs? what is happening? He is now in rehab but he has been clean for a while but these seem like long term effects. Are they? Professional answers are appreciated as well as non professional I just need to know what is wrong with him…
ok thank you guys
more answers will be appreciated though.