I know one guy who finished the degree, and didn't do pre-reg and went into computing/coding. You mentioned this.
You could do PGCE and become a science teacher I think.
As mentioned YOU have got to do the final year and the pre-reg and the exam. Do you think you can do either of those or both or none?
Before you leave, make sure you know what you are going to do next and make sure it is possible. If you don't intend to ever practice as a phamacist, then try and complete the 4 yr degree. If you feel you can't do this, and the effect on your health and also re-sitting a year would make me use this lockdown time to email the hell out of every person and institution you can find regarding teaching and also ICT so I could leave and also research all day, every day all the options you mention.
Ask the Uni if they have any info on other students who left at this point and what they did with the PharmStud. degree.
Basically if your hair is dropping out and you are having panic attacks, then personally I would look at getting out, but also take into account the good advice above, especially Mr.Opt. Also remember, you can only sit the pre-reg exam 3 times, then that's it. You won't be a pharmacist. Think of this too as many find pre-reg hard to do the physical work all day, then study all night.
Good luck.