It looks like this post addresses the error you're reporting. What variables are being mapped to color or fill in the ggplot function? They may be empty or full of NAs.
I can't help you without being able to reproduce your error - try making a reprex if you can. I suggest including a link to a dataset on 0-360 longitude scale that leads to the same error.