To prevent and manage wrist and hand pain from repetitive tasks, ensure proper ergonomics by maintaining neutral wrist positions while typing or using a mouse. Take regular breaks to rest and stretch your hands and wrists. Consider using ergonomic tools, such as a wrist rest or an ergonomic mouse and keyboard. If pain persists, consult with a healthcare professional for a proper diagnosis and guidance on treatment and preventive measures.