Is my switch grounded at all?
Someone was lazy and used the backstabs which are notorious for working loose over time. That would be your issue.
Use a screwdriver to take out the blacks stabbed in the back and instead connect those on the screws. That should fix your issue.
The ground wire should be connected only to a green screw or the connection marked as ground if present. But it doesn't look like yours has one. If you are worried you can replace the switch with a new one that will have the green ground screw.