1. Update drupal core and contrib odules to the last version
Example with composer if you use core-recommended: composer update drupal/core-recommended:9.3.14 -W
2. Perform Regular Backups of the files and database.
You can use Backup and Migrate module