You can avoid fecal impaction in the same way you avoid constipation. Eat a fiber-rich diet and drink plenty of fluids. If it's a recurrent issue, a healthcare provider may advise you to use stool softeners or laxatives. Your provider may also adjust any medications you're taking that could cause constipation.