(1) Nothing makes you a "problem employee" faster than being good at your job while working for an insecure manager.
(2) Your competence feels like a threat.
(3) Your ideas look like you are after your managers job.
(4) Your questions sound like you are challenging them.
(5) Soon, HR is reviewing your performance, not how your boss leads
If this has happened to you, you were not the problem. You had the wrong manager.