Upgrade the OS before you upgrade OH. See openHAB 4 migration FAQ for the recommended handling to upgrade from buster.