could be ram chips are loose in DIMM. Remove all memory and reinstall only one at a time using proper technique. Each time when it boots well without beep, shut down then add another ram. Repeat this until all rams installed.
So my brother done a system restore and when the computer was starting up there was a beep constantly my brother shut down the pc
Optiplex 790 randomly beeping on startup