Those boards are hot garbage in my experience, and only worked consistently when I superglued the magnets in place. Lots of cheap alternatives out there that work fine. Like, try any other solution.
Example:
https://www.pinballlife.com/fliptronics-type-2-opto-board-replacement.html