Please try an “air job” with the router and dust collection off and no stock in place — if that works, then try changing the carbon brushes in your trim router (if using a Carbide Compact Router).
To really ground everything to earth, use EDIT: A wiring setup to connect to ground such as are available from electronic specialty houses.
Clip it to bare metal on the X rail and plug the other end to an outlet.
Another thing you can do is ground the router itself — this should be done w/o defeating the double insulation of the electronics. Best advice is to connect the router body electrically through the dust shoe (I just wrap a bit of foil tape around it) along the hose (either use a conductive hose such as: Dust Collection Hose | Dust Collection | Peachtree Woodworking Supply or run a bare wire from the dust shoe (or start it at the router) and if your vacuum isn’t designed to ground the hose, then connect it to the same ground as the vacuum.
An excellent post discussing this is: