Random mouse and keyboard freeze for half second after login from a sleep

My laptop (intel core ultra 5 with intel arc graphics ) is facing random freeze lasting half a second after a sleep due to inactivity. After the login mouse freeze and resume during the usage . Keyboard also showing the behaviour while typing .
keys type rrrrepeatedly ← just happened

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 18 × Intel® Core™ Ultra 5 125H
Graphics Processor: Mesa Intel® Arc

Added f40, freeze