RtlUserThreadStart error for Python Script node

I have a Python Script node running Selenium process. The node fails with the following error.

ERROR Python Script 5:2181 Execute failed: RtlUserThreadStart [0x00007FFD2FA4AA68+40]

Any idea on how I can avoid this? I’ve tried to increase the Xmx and did not help. I’m using KNIME 5.1.1.