In your experience what are legitimate grounds to fire someone?
Depends on who thinks you are bad enough and how they came to the conclusion.
If your boss thinks you are bad enough - the question is why do they think so? Is it laziness, incompetence, or merely small nonsense that the boss couldn't accept retroactively? Is this all via stack rank or fake BS quotas? What is it?