Cracking in stainless steel welds can be caused by factors like improper filler material, excessive heat input, or rapid cooling. To prevent cracking, use the right filler material, control your heat input, and preheat or post-heat the material if necessary.