So here is an update i tried to look for error using journalctl and dmesg but i couldn't understand anything and my laptop was continuously throwing 'f' at random and my mousepad wasn't working so since i have luckily installed timeshift i restore the system before the update and after that i re-updated the system and hooray it has finally stopped i haven't encountered it ever since.
but i still don't know what caused it in the first place may be something wrong happened during the update i don't know.so if anyone can tell what caused it i would love to know it to prevent this situation in the future
so thanks @korealinux for suggestions i really appreciate that 