Thank you for the help, I am not using rider and am unsure how to use it to fix the issue. I have used this plugin throughout this programme and haven’t had any issues with it until I made the same error stated in this post: include - UE4 - Visual Studio cannot open any source file after I add new c++ files from Editor - UBT_COMPILED_PLATFORM error - Stack Overflow.
I tried following their solution but I don’t seem to have the option to select “Generate Visual Studio project files” and unsure where to go from here