If the data are already there it may not be a good idea to redownload them. Try to reflash the twrp and rom (with the reflashed twrp). (You didn't flash magisk before rebooting after flashing the rom, right?) If it fails again then it may be a good idea to wipe the phone, since if the data are already there you may create duplicate data and cut yohr free space ~in half. Besides, setting something up on a semi-broken system is probably a bad idea. (Do a "wipe data" from twrp.)on 21.6.30 is when i first set up the second space. I didnt have any issues then.
Currently starting to redownload all the apps and log in to each and every one, so annoying