Its is safe. If you feel pain, unusual tiredness or cramps, then just stop it. Listen to your body and inner instinct. Safe pregnancy!
Sewing on machine, may need you to bend a little forward, which might make your stomach uncomfortable, also causing sharp pains. So be careful. Make sure you do not bend ahead much. Take regular breaks and relax your back.