Try to migrate Bitcoin Core wallet to an HD wallet but get "St13runtime" exception
The answer you linked explains how to migrate without using upgradewallet in the section "Versions of Bitcoin Core prior to 0.17`. You will need to follow those steps instead.