I have started getting this error a bit randomly saying "object reference not set to an instance of an object". Its occuring in a C# code wherein I am accessing an excel file and writing content to the file. Most recently its occuring on the statement attached in the image.
To add some context, whenever I interrogate this, it is coming up as a new control. and when i try to run automation with this , it gives me an error that the control is not matched. So it is something which is being created every time the page loads.