You describe hell. But I don't believe that your experience is dominant or even that common in the UK. Which generation are you from?
As a consequence of this experience, though, I saw that I wasn’t exactly entirely unique either, as there were other children treated as I was and we sought each other out. So I know that while my experience is not universal: that it is at least shared by a handful of people within my schools alone. - I would hazard to guess more outside of my school have these experiences too.
I know my experience isn't especially portable as I went to a public school in the home counties, but not all of my friends did, and while I understand they experienced teachers with varying levels of competence and interest, none of them has described it in as harrowing terms as yours, and all came away with friends and a fairly decent education, albeit one that they probably had to have a bit more determination to get than I did.
My mum worked in various UK state schools as an assistant from around 2000-2010 and described serious budgetary problems throughout the system, and teachers trying their best in adversity. She also described the many obstacles in the way of getting the bad kids out of classrooms so they couldn't disrupt things so much. I have a friend who teaches at a grammar school, who is fairly intelligent and interested in his subject, and seems to teach well to kids who are interested, though again there seems to be little money to achieve anything.
I'm not claiming shitty, prison-like schools don't exist or trying to invalidate your experience, it was clearly terrible, but I'd be wary of drawing too many wide-ranging conclusions about school education as a whole from it.
From my position, saying: "I'd be wary of drawing too many wide-ranging conclusions about school education as a whole from it." Comes close to invalidating the experience of another.
1) My primary school clearly took children's advancement seriously (more in things like handwriting, bladder control and cycling proficiency than in subject-matter knowledge or understanding), so it wasn't all pain and no gain, but that mostly stopped at secondary school.
2) Secondary-school maths lessons were (usually) something of a haven because maths teachers were willing to engage in unplanned reasoned argument and for almost three years we worked independently, at our own pace, from booklets while the teacher gave us each in turn one-on-one tuition (for only one or two minutes per lesson, but it did mean that I escaped being uncomfortably pressured to speed up or slow down both when I was working independently and when I had the teacher's attention for a non-punitive reason).
I think British education would be better if secondary schools had a clearer purpose and treated pupils as stakeholders. My experience was that my formal education started at primary school and resumed at university after a seven-year gap. I never really found out how my secondary school was meant to benefit pupils. Pupils ought to not only benefit from school, but understand how it benefits them.
I think schools should reflect clearer thinking about ability-based selection. If pupils are grouped by age and location only, and not at all by ability, then requiring the whole class to work through the same material, in the same way, at the same pace risks seriously inhibiting subject-matter learning. On the other hand, grouping pupils by "general ability" risks putting pupils in some classes more or less advanced than those that would benefit them most, and permanently disadvantaging those who are rejected from the more prestigious academic path at an early age.
Pupils also ought to lead lives they have reason to value. Corporal punishment even for bullies is a net negative, and there should be meaningful protections against teachers using loopholes, such as turning a blind eye to bullying or perpetrating emotional abuse themselves. We had many teachers like that at my secondary school, and one of them was found to have assaulted a pupil while I was there.
Edit:
I think some important points aren't really clear above. I agree with dijit that school can provide pupils with very poor value for the burdens it places on them, but I consider this a missed opportunity, rather than a lost cause. I also suspect some teachers' toxic attitudes about class and violence contribute to the bullying problem, so we should be careful not to let cognitive biases lead us into doubling down on "discipline" in schools, unless there's good reason to believe that isn't part of the problem. I left school many years ago, but before I did, authority figures bemoaned the "end of discipline" and the coddling of pupils, which was at odds with my experience then, so I'm sceptical of any claims that the problem has since been solved.
In the same way, my own experiences at school were a significant attitude change compared to the learn-by-rote and corporal punishment era of my parents.
I couldn't claim that it works for every student or that every school is like that - plus the entire school system is now stretched financially to breaking point in a way that it wasn't when I was there, and there are additional new problems such as social media - but I do feel that in general things have moved in the right direction.
Having said that, your experiences weren't a million miles from mine in the 80's in the crap end of Hampshire. Most of the violence there though was from other pupils, rather than teachers.
However, speaking to my daughter schools these days do tend to be kinder, gentler places than when I grew up. Fights seem to happen never rather than on a daily basis.