I can understand how this can be problematic. I recommend trying these steps to reset the permission for your spen.
From the Home screen, swipe up or down to access the Apps screen.
Scroll down to Advanced features.
Tap Advanced features.
Tap S Pen.
Tap Air actions.
Tap More options.
Tap Reset S Pen.
... View more