My machine did this before. I don't remember how I fixed it. I probably changed thread and needle sizes. I don't think it is a tension issue.
The needle size and type is determined by the thread type, weight and ply. Needle and thread education is very important. Start here:
https://www.superiorthreads.com/education/