I reduce the number of new cards (possibly to 0) and spend 1-2 weeks primarily on review until the backlog is cleared. This works well in Anki.
If you have any cards you forgot, they will be reset on their own by the algorithm. Like if you get a new card today and go on vacation for two weeks, then that card will be 2 weeks overdue. Fine, you review it, get it wrong, study it a couple more times and then it's back on track for the next day. That's exactly how the algorithm is intended to work.
Once the backlog is cleared or at a reasonable level I restore the settings for new cards.
If you have any cards you forgot, they will be reset on their own by the algorithm. Like if you get a new card today and go on vacation for two weeks, then that card will be 2 weeks overdue. Fine, you review it, get it wrong, study it a couple more times and then it's back on track for the next day. That's exactly how the algorithm is intended to work.
Once the backlog is cleared or at a reasonable level I restore the settings for new cards.