I have tried looking into if I can find any information about what limitations Solidity has in regards to how many times it can store information, read information, etc. in one contract interaction.
In general, all the information I am locating is that it depends on the gas you want to use.
Though I have run into a case, where the contract is using a little over 400k gas and fails with an “out of gas” error.
Then if I comment out a variable assignment or a few variable reads, it is able to run again. This makes me wonder if there is a hard number on how many times you can read/write that is not tied to the gas.