"Z87 Pro" is a whole family of mobos, so we can;t look up its details from that. However, I can tell you a couple of GENERAL things you should look into. All of this is focused around my though that there is some corruption of the settings you had stored in the BIOS Setup memory and it needs to be fixed.
First you need to get into BIOS Setup, and this may take several tries since your system often fails to boot cleanly. Immediately after pushing the On / Off button, hold down the keyboard "Del" button. (This is the right key for most systems.) Wait until the opening screen of BIOS Setup appears, then release it.
Now look for the EXIT Menu and go there. Look through the options. Normally there is one to Load Factory Default Settings or to Load Optimized settings. Do that, and it will load a complet4e set of good settings so your system can boot properly. Next, do NOT exit. Go back to the Main Menu at the start. Start going through screens of settings and look for ones you are sure need to be changed. For example, setting the correct drive to boot from, or specifying whether to use a graphics card in a PCIe slot or some form of built-in graphics. Change any you know need it. Then use Esc back to the Main Menu, and the F10 key to get beck to the Exit Menu. There choose to SAVE and EXIT. The machine should reboot cleanly with these settings.
If you can get clean boot from this, you can decide whether there may be any other BIOS settings you need to alter.