If the upper thread of the machine keeps breaking where the needle enters the fabric, it could be that the needleplate or bobbin case have minor damages in the form of scratches and/or sharp edges. These minor damages can cause the thread to break after a few stitches.