Twisted Cohomotopy Implies M-Theory Anomaly Cancellation on 8-Manifolds