svchost.exe – Application Error: The memory could not be written (Windows 11)

I keep getting this error on my Windows 11 Pro machine:

svchost.exe – Application Error
The instruction at 0x0000000010034A3D referenced memory at 0x0000000010034A3D.
The memory could not be written.

Click on OK to terminate the program!
[This is the details of error]
(https://i.sstatic.net/AJPFJGW8.png)

This happens repeatedly, even after restarting. Sometimes it triggers randomly, and other times during normal use (browsing or opening apps).