Hi Hossein Hosseini2,
Thank you for reaching Microsoft Community and sorry to hear about the issue that you are having on your Surface Pro 9.
Considering that the issue appears during the Windows startup screen though occurs intermittently, it is possible that it is already a hardware issue but let us try first running some steps on the device and see how it goes. Try to check for the Surface drivers' health through the Surface app and run the Surface Diagnostic Toolkit to run some system checks and repairs. Also, make sure that all updates are installed including Optional updates in Windows Setting > Windows Updates. See this page for reference: Fix common Surface problems using the Surface app and Surface Diagnostic Toolkit - Microsoft Support
After running those steps, kindly observe if still the issue would occur again or not. Let me know how it goes.
Kind regards,
Marrion