Screen sharing fails to unlock

14 Inch 2021 Macbook Pro M1, running Ventura. When the macbook is closed and charging, I attempt to connect via screen sharing from another Macbook pro, 13-inch 2020 M1 also running Ventura.

First I have to enter my username and password into a popup before I can even get to the other mac's screen.

Then I get to the standard lock screen, showing my username and asking for a password. When I enter my password I see the desktop for a second or two, then it immediately relocks before I can even move the mouse, etc.

This happens up to 4 times before I either give up or get through.

This is extremely aggravating. I don't have a hot corner to relock the screen or anything like that.

Screen sharing fails to unlock
 
 
Q