I am getting this error. Any suggestions to fix this *** caught segfault ***?

Could you provide a little of context? Ideally, could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.