@h4yn0nnym0u5e: I can confirm that your patch, combined with checking the error returned by TwoWire::endTransmission(), solves the issue.
Without the patch, TwoWire::endTransmission() will end up in a continuous error 4 "we lost bus arbitration to another master" state.
What is next, a pull...