"strange ear-piercing beep come from the computer once every few minutes and last for about 5 seconds."

That's usually an OVERHEATING indicator. Try this. Remove the case cover and check that all fans are spinning and that no heatsinks are not clogged.

Leave the cover off till you sort out the heat issue.

Bob