Can you share your code so that it might for the community?
Because the error is generic, it is difficult to detect the source.
I suggest to check if all involved objects are valid. Another check might be trying to read the cell first.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–