Cannot use torelative=$1 relative to a deleted revision.
Link to this page:
https://wiki.pastlives.space/MediaWiki:Apierror-compare-relative-to-deleted