Do you have the correct power cord/supply? Perhaps it got shipped with the wrong ones?
Also, Does this happen consistently when you are doing something or at a specific time? Basically, is there a pattern to when this shuts down? Perhaps there’s live updating and its causing some kind of conflict and causing the server to shut down.
You should have diagnostics available from the server manufacturer. I would run diagnostics on the system.