Problem Changing Data directory in Nextcloud Snap

i’ve been trying for ever to get it to work
every time i face the same problems

i have a 700gb hdd as a system drive

with a 4tb nas drive for storage

i manged to get it working on the same 4tb drive when it had an Ubuntu installation on it
but after i formatted it i cant get it to work again

i tried multiple ways but i still cant get it to work

using the official way in github

if i change the data directory before creating the admin user im faced with this error

changing it after creating the admin doesn’t work either here are the error logs

now i have been searching and i have foundthis youtube video and i tried its different way of changing the data directory

here are the error logs

and this is list of the commands i used

please add a gui option to change the data directory