Thank you for your tips. I already ordered a patch of mu-metal which I will apply to the backside of the tablet where the magnet is located in the hope that it redirects the magnetic field sufficiently to not trigger the sensor anymore.
If this does not work I will check if turning the magnet around will help or remove it altogether.