Found a fix for the random screen freezing and keyboard lag as well as the screen switching to vertical from horizontal during video play. just spam this button in the chat app
FIX: Cursor freezes, jumps or disappears in Windows 10/11
Calaméo - Keep Your Air Conditioner From Freezing
5 Main Reasons For Why Computer Keeps Freezing
lock screen keeps freezing with keyboard! - Android Forums at AndroidCentral.com
Samsung Keyboard Stopped Working: How to Fix It? [SOLVED] - JoyofAndroid.com