Why isn’t my local play working?

I tried googling this first before coming here but couldn’t find anything that helped but does anyone know why i can’t use local play between my two switches? I used to be able to do it before but now i can’t, it keeps popping up “an error has occurred” after i say yes to going to my other island. They are both on the same account but it shouldn’t matter unless i was trying to do online. I don’t know, someone help please😭😭 i have already tried messing with my Wi-Fi settings & everything is all up to date on both devices. Thank you!!