Stability of some versions of the Prékopa–Leindler inequality