I tried replacing OneDrive with self-hosted storage, and it didn't work out

Self-hosting isn't as seamless as what Microsoft provides.