SDL2_ttf render text blended wrapped flicker

I’m trying to use SDL2_ttf’s function render_text_blended_wrapped to display a long text in a game.

When I use render_text_blended_wrapped and later turn the surface into a texture to copy it on the renderer, the result is a text with a color that flickers. The color for the font has full alpha on (255).

Does anyone know why this may be happening? Using render_text_blended shows text without strange color variations.