Take note that the current latest version is Bitcoin Core 26.0 it would be better if you upgraded Bitcoin core to the most recent version.
Instead of using "rescanblockchain" have you tried to run Bitcoin core with "-rescan"? It won't take too long to rescan depending on your unit specs.