|"I started to receiving critical error hard drive and ram memory usage is critically error message"|
Your post is poorly written & difficult to understand. And it would help to know whether you're asking about a laptop or desktop machine. There's an "automatic restart" setting listed under Startup & Recovery > System Failure - that setting should be disabled. That way, the system will display an error message rather than restarting. You can then use the STOP code & error message to troubleshoot the problem.
"My computer is protected my McAfee AntiVirus software"
I doubt you'll find many people in these forums recommending McAfee or Norton/Symantec products.
Have you tried using "Last Known Good Configuration" from the Advanced Options Menu:
Or System Restore?