Google Chrome and Chromium not working after changing User password in settings

I changed my login password for my PC and after I rebooted my PC chrome was not loading anything. I tried Firefox and everything seems to work just fine. So I tried to open a new profile in chrome as from the terminal log it seems to be unable to read chrome’s data in .config and it was working fine until I login in that profile. Same issue was with chromium.
After a while I received a message saying Your account is logged into a device that does not have a screen lock. So after few moments of thinking I changed my PC’s password to the old one and everything started working fine.

How can changing the password of PC in settings cause this issue?