Thanks for reaching out for help. It is only human to make a mistake and regret for it later. But not every mistake needs to take a toll on your emotional well being. You can take a session with a counselling psychologist or relationship counsellor and come to terms with what happened.
Next Steps
Take a video consultation with me or any therapist of your choice and you can speak your mind without feeling judged. This will give a new and positive perspective to you which can also lead to mending your relationship with the said friends.
Health Tips
Do not take all the blame as circumstances and our own rational compromise can make us do mistakes that cost us good relationships. What is important is to realise how you can bounce back and stay away from the bad decisions in future. Professional counselling can really benefit you.