Wired logitech mouse and wireless logitech keyboard freeze randomly

I finally solved the problem. It was the SSD. Kingston told me to update it with their updater (under Windows, 😡). The SSD didn't want to be updated. So I decided to replace it. Since that replacement, I haven’t had any more problems.