Pinballs report switch errors when either the game senses that a switch that shouldn't be on all the time is stuck on...
For instance your inlane switch isn't supposed to always be on. It activates when a ball rolls over it. So if the game detects that the switch is on all the time it reports that you need to 'check switch'.
Or, if the switch isn't activated for a certain amount of games/time, no closure of that switch at all, it reports that you need to 'check switch'. From memory I believe that a certain amount of time is ten games or thirty balls played... something like that.
So if the inlane switch didn't activate IN GAME for ten games, it would ask you to 'check switch'. The reason 'in game' is capitalized is that best practice is to actually start a game, and activate the switch in game. Don't just be in the test menu. That will reliably get the message to go away.
A common mistake is to activate the switch by pressing on it with your finger. You need to test the switch with a ball. Make sure the ball activates the switch. Your finger can activate things that the ball can't, and in-game you need the ball to register.
It is fairly common for black microswitches to become 'flaky'. To not click, or to click but not register a switch closure. Or they'll get 'sticky' where you push the wire down and it'll stick down.
Sometimes that's all about adjusting the switches or the switch activation wires, but...
Replacement of the black microswitches is very common.
I'd be prepared to replace those two switches.