Hi, and welcome!
Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers.
It can be really hard to reverse engineer a problem without being able to cut and paste. It's wonderful to the data, but besides not being easily captured, there's just more than necessary here. What is needed is something to be able to see just what is causing the error message.