Can I loose by best friend because of plagerism

Can I lose my best uni friend of 2 years?

Hi everyone

A few days ago me and my friend sat a take home exam together, I usually get extra time because I'm quite slow and process things differently. The exam was 24 hours and I had 36 but I stayed up for the whole 36. For the whole 24 hours me and my friend were on call, we planned our questions and we helped eachother out. Obviously my friend submitted after 24 hours and I went to work as I couldn't get the day off. I come back later on to finish my work, and then I send it off to my friend to read over he always checks my work over because I always have some form of silly grammatical error that I miss. As he was reading he says it looks like his awnser bare in mind we did the same question and we would come to the same awnser in the end as there is a right awnser. I was confused and said its probably because we worked together. Then he says no this is Litterally my essay. I looked back and I noticed I used his practice essay that he emailed me to help so I mentioned that. Sometimes when I would be stuck I would ask how things were structured and write them down as my friend said it. My friend started my panic and asked me to change things around which I started doing as I started to get stressed too. Later on after submitting the plagerised percentage was 20 percent from a variety of different sources. Anyway we go to bed the next morning on my way to work I message him and talk about why I think the plagerism was 20, bare in mind I did not have his essay to hand, at one point he screenshared but I did not take any photos. I sent a message talking about how I used the practice essay and I wasn't thinking about how it might come up as plagerised. My friend responded and put our essays in a copy leaks plagerism comparison thing and shows how it comes up as 60 percent. And asked if I recorded or screenshotted his work. I did not the most that could of happend is that when he says saying things that I was unsure about I wrote them down, we've been working with eachother on assignments for 2 years and nothing like this has happend before even when we do the same assignment. He started stressing about a plagerism investigation and at that point I said if anyits my fault I shouldn't have used ur practice essay(same topic different question) they said that their essay was different from the practice. Now I'm getting stressed because I don't want my friend to be penalised for something that was my fault. I decided that I'm going to get my paper removed by saying that I was unwell so I am getting evidence for that now and that way I will either be able to resit my exam at another date with different questions uncapped or if they don't accept my request then it will be capped but I don't really mind anymore because now I'm worried about plagerism too and I don't want to hurt my friend.

I really really care about him, I'm struggling to eat and I have exams right now but all I can think about is him and how I might have made him feel I don't know what to do or how I can make things better. I am Trying but I don't know if it is enough