For in ground, it is all about drainage. I have raised beds of topsoil and stone. If water puddles, especially more than 24 hours, it can rot the roots, the trunk will turn black at the soil line and the tree will die.
I have 300 trees on flat ground, but it is ripped rock 6ft deep, so there is plenty of drainage.
Pick varieties with closed eyes and are resistant to splitting in rain.
My top two for rain resistance are Conadria and Flanders. I picked figs off both of them throughout the rainy season. With nearly 24/7 rain for 30 days straight.
Peter's Honey is pretty good with the rain, but takes a long time ripening.
I like the Mt Etna types, Hardy Chicago, Sal's/EL and MBVS. They grow fast and produce large crops of figs. They can handle light rains.
I'm also growing figs under rain tarps. That can expand what figs you can grow to anything common.
Good luck