The only issue or glitch I found is that in CC-mode there is a little 50Hz ripple (around 5mV AC) when using a load above ~20 Ohms (pic 2).
How does that ripple change with current set point?
What I can say its perfectly matches the mains voltage.
Does somebody have an idea where this effect might come from?
Any current sense regulator is going to be susceptible to magnetic fields.
PSRR issues usually appear at rectified power frequencies and waveforms (100Hz, ~sawtooth),
It cannot actually be
perfectly matches the mains voltage, but it will have some phase relationship, plus some high pass elements.
If you have low voltage AC available, you can try simple RC coupling to give to a similar phase and harmonics