It gets even weirder. The above issue occurs on Chrome and Edge browser. In other browsers it works fine. So I thought it may be cache issue. I cleaned the cache and reloaded it worked once then it shows above error again.
Guess what, it happens for only one thread. Other threads are working fine.
What is going on.