You restored something that bricked the operating system. I am assuming you performed a full restore including all applications, etc. and that you restored from a Time Machine drive using Migration Assistant? There must be some software in your backup that is not compatible with macOS Ventura 13.3.1 that causes it to fail on boot.
With the M1 MacBook Pro turned off, hold the power button and keep holding it till you get to the startup options. Click on Options and Continue. and then boot into macOS Recovery mode. Select your disk and unlock it with your username and password. Open Disk Utility and select the 'Macintosh HD' internal disk. Erase the disk to APFS. Then re-install macOS Ventura. Skip over the macOS restore option and just install macOS Ventura. Boot up and you may have to check for Software Updates to ensure it's up-to-date with 13.3.1. Next, you can open Migration Assistant but DO NOT RESTORE EVERYTHING. Restore only your data and not your applications. Then manually install your software applications. Check online that each piece of software not installed from the App Store is actually compatible with 13.3.1. Some may have updated versions to install, etc.