That error may also be due to the installer having an expired certificate. In that case you would need to set the system date to 2017. But the easiest method would be to attempt to access the online macOS 13.x Ventura installer using Command + Option + R as suggested by @BDAqua. Unfortunately no matter which keys are used to access Internet Recovery Mode, some Macs will only boot to the oldest online installer.
If that is the case changing the system date is the next option to trick the installer. From recovery mode launch the Terminal app from the Utilities menu on the menu bar. Use the following command to set the system date & time to Jan. 2, 2017 @ 11:33am:
date -u 010211332017
Assuming there are no errors, quit the Terminal app and select the "Reinstall macOS" option.
Make sure to correct the date & time once macOS has been reinstalled.