Run the Apple Diagnostics to see if any hardware issues are detected.
To look for possible software issues run EtreCheck and post the report here using the "Additional Text" icon which looks like a piece of paper. If you give EtreCheck "Full Disk Access" it will also include the summary of recent system logs which may provide some clues.