That gradient looks terrible, very bad colour banding, because you’re starting and ending at points that are
way out of gamut, and the technique used to bring it in isn’t smooth. For a gradient like that, you probably want at least five points.
That is the biggest problem with these colour spaces: the edges are unclear, and overflowing them has bad effects.