Logitech keyboard bluetooth doesn't connect :(

I am facing a strange behavior of bluetooth connection where my logitech K480 keyboard doesn’t connect to my PC it keeps retrying and failing to connect. Al though when I lock my screen and press the keys on my keyboard so that it starts connecting it does connect succesfully.
Now everytime my keyboard disconnects when its kept idle I need to touch my laptop keyboard to lock the screen and then let it connect from that point. Never had this issue at f41 (currently at f43)