Is the case touching the end of the S Pen when installed?
That is very possible. Magnets can affect many functions of a phone.
Hopefully not? I would not be able to guarantee it. Is the case a Samsung case?
I agree. I have the same issue with my Note phone. I finally found one that had a small plastic snap like closure.