How difficult is it to be a resident of San Marino though
San Marino isn't tax free.
I don't want to pay income tax in Estonia, otherwise I'd just live in Dubai.
You will be way better to just stay in Dubai and pay some taxes instead of dreaming about fantasyland tax structures to achieve 0% taxation which is more and more unrealistic.