I had the same issue , everyone said to use any motor drivers and i had one but it was damaged ( or i don't know how to use it ).
By the way, solution is to connect the maximum no. of gpio's as positive and a gnd as negative.
Note : As you are directly powering motor from pi.
I don't guarantee you that your pi will be safe. I didn't come across any problem ...