Pkmslogout & pkmspasswd error - How to handle with Katalon Studio

I am automating the web application with Groovy & Cucumber with Katalon Studio. After entering my credentials in the login page and click on the login button, receiving the attached error with the script.

And if I enter the credentials manually, I am able to login successfully and able to proceed further.

But the tricky is here. If I close the browser after I recieved the attached error and reopens it, it is proceeding successfully with the SCRIPTS. How can I avoid closing the browser when I received with error and open it again ?