This is a really tough situation comrade, I'm sorry.
I don't know enough about the situation to give specific advice. It depends on what he's doing. If he's doing blatantly illegal shit, how illegal are we talking? Is it just property damage, or is he a danger to himself and other people?
First, someone needs to contact his mental health provider. If the meds are causing the issue, he needs to have them reduced or stopped entirely. He likely will need something to sedate him until doctors can figure out what the hell went wrong. If he has access to alcohol, he needs that access removed.
I'd recommend him being taken in for a three day hold, but it sounds like he already did that and tbh the mental health care system is so bad in this country (assuming that you are in the US) that it will likely have him feeling more fucked up. Whatever happens, he needs a time out, because his brain is running on adrenaline.
Speaking as someone who has had a few mental breakdowns in their day, I would have appreciated being dragged out into the woods for a camping trip for the week with some friends/family. The go-go-go or die nature of our current society is really fucking bad for people who are experiencing a crisis, and the sooner he can slow down the better.
Also, remember, don't light yourself on fire to keep him warm. Sometimes there is only so much you can do as a friend. If he's attacking you, or hurting other people, he needs to be hospitalized before he gets arrested- a far worse outcome for all involved.