Prevention of solidification cracking during pulsed laser beam welding