Starting from FortiOS 5.4 and above, HQIP (Hardware Quick Inspection Package) are built into FortiOS itself. You can use diag hardware test command to perform the hardware test to detect the hardware problem. This output of the hardware diagnostic return failed, you may send the hardware diagnostic report to fortigate support to claim the RMA.
Below are the few example of hardware diagnostic command
i. To show the list of hardware test case
ii. Test system configuration
iii. Test CPU
iv. Memory test
v. Test network interface detection
vi. Test disk
vii. Test Bios