The same happened to me! I've tried to get it welded, but didn't work, after a few days it was broken again and btw it was pretty expensive :(
Finally I found a used side cover very cheap in a ebike service. The side cover I found was not from a same type of motor, but it's diameter was the...