For how long does this problem disappear?
Do you see any patterns when it happens?
Still, you don’t get a proper error? The script just hangs and that’s it?
Could you create a conda environment with Python 3.6 and try it again?