Then this sounds like an actual mental health thing and not a dog whistle. I don’t actually have any answers. Just years of experience reading useless internet comments.
Seek a professional if you can. I don’t even know if you’re in a nation where just looking for help wouldn’t get you or your friend killed. Good luck.