@jan545651 have you read though "Your data may be corrupt": /e/os booting into recovery and crashing on startup after running out of disk space?
This starts as a Fairphone thread – it seems to me there is some useful background information as to how adb
commands might work.
(Maybe, as said / implied by @tcecyk adb
could work better with e-Recovery than TWRP.)
At Post # 99 above @tcecyk points to “other person”.
At this point the subject is now a Samsung S9+. Some of the formatting is hard to follow, but the commands recommended do result in success. For orientation the Samsung S9+ is introduced at Post #17