I had the same issue that disappeared after an update (I assume).
Did you update until the latest release?
I have seen some complaints on the forum related to the "login feature" added to SMT32CubeIDE. The point being made is that ST might consider focusing on quality of tools instead of adding features of limited or negative added value to the developers. I have no opinion about the mentioned post, but if this behaviour would be caused by ST code, then the point of the post is someting worth reflecting on.