The data lives in your server, everything is yours, if that happens, you just fork or write your own.
Not sure what writing yourself first buys here.
The choice between rolling your own and third party is already a trade-off. The future uncertainty around third party services without a clear business just tips the scales, it’s not the whole justification.