Inspect the motherboard for physical damages to the ports or the board itself check to see if there is any loose contact.
Check for the keyboard connection.
Check if the processor is overheating.
Troubleshoot the memory to make sure the memory is in good working condition.











