I strongly suggest you do not use that frame again. Don't weld it. Don't try reinforcing it. Structural failers at critical points is telling you something.
What frame is it? Does the engine vibrate badly? Is the engine mounted solid to the frame, no rubber or resilient material between it and the frame?
Do you ride it hard? Jumping curbs or rough terrain?
Please take my advice and start looking for a better bike. That one is going to get you hurt.
Tom