Whilst this does work, what you're doing is opening your PC to potential threats by not having the latest version of windows security. Now this is probably not a massive issue, but it is a little ham fisted. A slightly more nuanced approach is the following:

The issue is caused by conflicts between the new security driver and windows ink. Wacom (and other pen tablets - surface, ugee etc) are using windows ink for pressure sensitivity functionality. This isn't just an issue with wacom, it's affecting all pen tablets that use it.

The solution (within photoshop) is to force photoshop to use "winTab", which is a legacy windows pressure sensitivity functionality. This is really simple to do, and there is a video here, but basically:

Source: Have done this on many machines across the whole art team at my company and it has worked.

From forum trawling this morning it would appear that Microsoft are aware of the issue as there is an early beta-fix available to members of their "insiders programme", but this hasn't been rolled out properly yet. I suspect it won't be long as it is their software (windows ink) that they've broken lol.

Windows Ink it seems is not really made for artists, there seems to be much more of a focus on optimising it for note taking and sketching on graphs etc. as that seems to be what Microsoft want to push with their surface line

Whilst that is true, those two lines of code in the notepad file is a script that tells Photoshop to use a legacy pressure sensitive program called "wintab". It's not perfect and it's flaws become evident when doing fine line art (the cursed wobbly lines at slow speeds) but it is the best solution I've found whilst windows sorts out ink in their next update. I've found it doesn't really affect "painting" but its not perfect for line art