Did you ever ask for a new manager if your boss was terrible?
Is it even possible for that to work out? I asked to be moved from a bad boss who was causing a lot of staff issues and hindering important projects. Management understood but wouldn't address it. I ended up leaving. Recently, a friend told me she had been able to be moved away from a bad boss, but it took an official complaint.