I solved it using
const tickArray = [0, Math.trunc(MAX/4), Math.trunc(MAX/2), Math.trunc(3*MAX/4), MAX];
and
ticks={tickArray} domain={[0, MAX]}
in my <YAxis>
component and removed
tickCount={5}
CLICK HERE to find out more related problems solutions.