Stanza breaks may or may not be based on the number of lines per stanza.
Explanation:
A stanza is a group of lines within a poem, and the white line in between the stanzas is a stanza break.
They are used with many different purposes, for example, it may be used to change a topic or to set a rhythm in the poem, it could also be used to create groups of theme within the poem, so it is not directly connected to the number of lines unless the poet wanst to create a specific rhythm in all of them to convey the message.