See #22762 (comment)
This can be fixed by creating a new exception type and catching it in the right place.
Useful skills:
- C++ exceptions
- Addrman serialization
- Functional tests
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.