If an erection lasts longer than four hours, seek emergency medical assistance since it can cause lasting harm if not treated swiftly.