Without seeing the schematic, the most common causes are missing or incorrect gate drive, no proper load or snubber, and incorrect device models or initial conditions. A linearly rising drain–source voltage usually means the switch is never fully turning on or off, often due to insufficient gate...