When you have a long path in the prompt, only few characters could be left to write the command before going on the next line.
With this prompt instead, the command starts from a new line regardless of the path length.
Try it pasting this in a terminal
export PS1="┌──(\u@\h)-[\[\w\]] └─\$ "
Make it permanent with
nano ~/.bashrc
adding at the end of the file
PS1="┌──(\u@\h)-[\[\w\]] └─\$ "
(I don't care about colors)