If you can prove that you are a decent employee (somehow) then I suspect that they can't fire you on those grounds, and you could get legal advice and see if they can keep you on.
It would probably be wise for you to go to your citizens advice bureau and get some free legal advice and see what they say about it.
I lost a job that I loved and it is a horrible horrible feeling, but there are other jobs out there, and if the worst happened, you might find a job you love more. You never know