Hello Pu,
My name is Hanem, an independent advisor, and I'm here to help you.
I'm sorry that you are experiencing this issue, and I will try my best to assist you.
have you noticed any changes before the issue starts? and is the Logitech mouse and keyboard can still connect to different PC? if not, there might be a hardware problem with the mouse and keyboard, if you can still use it on a different device let us roll back the Bluetooth driver by following the steps below:
Open Device Manager
Click View > Click Show Hidden devices
Click the Dropdown for Bluetooth
Right-click and Update your Bluetooth driver
Look for "Browse my computer for driver"
Let me pick drivers available drivers
Choose an old driver and use it.