Exact same issue, using the Pen causes a freeze & then a black screen. Applications like Teams have the windows blacked out after the freeze and have to be quit and restarted.
Source
Desktop Window Manager
Summary
Stopped working
Date
16/03/2021 10:57
Status
Report sent
Description
Faulting Application Path: C:\Windows\System32\dwm.exe
Problem signature
Problem Event Name: BEX64
Application Name: dwm.exe
Application Version: 10.0.19041.746
Application Timestamp: 6be51595
Fault Module Name: HeatCore.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 54ab4a1a
Exception Offset: 0000000000035b5d
Exception Code: c0000409
Exception Data: 0000000000000002
OS Version: 10.0.19042.2.0.0.256.121
Locale ID: 2057
Additional Information 1: b111
Additional Information 2: b111fda7573a1e10441015376b653053
Additional Information 3: f2cb
Additional Information 4: f2cb04e9d7bee3b9ba950fa6b38410fa
Extra information about the problem
Bucket ID: 3af1b524c9df8794d117428742533340 (1231526171809887040)