Returned back little improvement. I2C still works.
I2C works but only once. It must be ACK bit is removed somewhere.
Introduced separate sleep intervals for master and slave modes.
I2C write only if differs from already written.
Inserted condition defines.
It appeared that increasing tick per second breaks I2C. But decreasing improves I2C stability.