Hello,
Recently, you have introduced wraplength for fonts when rendering with pygame.font.Font.render.
That's why, we should have a wraplength parameter for pygame.font.Font.size so it gives us the right height.
Something like this :
pygame.font.Font.size(text : str, wraplength : int)