Need some help please. Currently running an N54L with Xpenology 5.2

I think my time with Xpenology has now run it's course. What should I move to (that's preferably free and legal) that this hardware can handle.

Needs to act as a minimum as a file server, plex server, two-way onedrive sync box. Preferably as raid or equivalent for data safety.

Thanks