Waveform when input peak is about 2.5 V:
Orange is PR3, output of peak detector. Blue is PR4, output of Op- Amp U1. Red is PR1, input pulse. I use Comp_1 to discharge the cap C2, after the pulse has ended. This is done to capture peak of all the pulses (regardless of the value).
Could someone suggest how I can fix this issue?