by link frozen do you mean both devices still work but ansible doesn’t react to teletype, or do they freeze as well? is it reproducible each time? how many devices do you have on i2c? are you using the i2c backpack?
also, does it happen only with that command or other i2c commands as well?