I can’t give a lot of advice as I don’t really follow my own but with your friend it may be that they don’t realize they’re not hanging around you as much (maybe tell them or find ways to integrate yourself into the group more?) or you may need to find a new one. This is stressful but is actually possible. I essentially left my old friendship group after they ignored me during lockdown and now have a single friend.
With your family the most you can do right now is tell yourself you’re doing your best and try to get through to them through discussions. You’re human and part of learning is making mistakes. Einstein said that education wasn’t everything - even said it restricted the mind!
Maybe bring it up with your mom (without shouting, try a conversation though I know it’s hard) because forcing you to work 2 trimesters back is extra and is actually hindering your learning because your brain can only take in so much information, especially if you don’t want to. Too much and all you’ll get is a headache and poor mental health. Even if she’s worried and wants you succeed she’s actually doing the opposite. It may help to get some facts from a reliable source so she listens to what you’re saying.
Good luck and I hope things get better for you!