Seems like the bootloader cannot find the macOS kernel. Either your hard drive is corrupt/failing or your boot drive is not blessed properly. This is not something that can be caused by a monitor switch.
Hopefully you have a recent backup through Time Machine you can restore with. Since you cannot boot into recovery mode I would get a macOS installer USB then boot with that to start a Time Machine Restore.
EDIT: Might want to try a NVRAM reset and a SMC reset before doing a restore, it may fix the issue (I don't think it will).
If one or more settings stored in NVRAM don't work as expected on an Intel-based Mac, resetting NVRAM might help.
support.apple.com
The SMC is responsible for managing power on your Mac. Resetting it can resolve certain uncommon issues related to power or thermal management.
support.apple.com