Assuming you have a Mavic Pro.
Remove the metal bottom from your drone (8 screws), then unplug all the flat cables from the board (3 in front and one in the rear left). The Rear Left one connects differently, again remove the glue (carefully, don't cut that cable) and slide the cable out of the white connector. Then unsnap the 4 antenna cables from the bottom of the board, moving the longer ones out to the side. Then remove the 3 screws holding the board. Pry up on the right side of the board with a flat tool gently while pulling the board up and towards the front. Once the board is out, you will see the IMU Module.
You don't need to replace the whole board, all you need is the IMU Module shown here:
Amazon.com: DJI Mavic 2 Service Part - IMU Module(Pro/Zoom) - Original OEM: Toys & Games
This is actually the IMU Module for the
Mavic 2, but is the same module used in the Mavic Pro. You just need to remove the module from the
Mavic 2 square mounting frame.
Remove the rubber mounts from the Square Frame and discard. There are 4 screws holding the IMU into the "X" shaped frame. They can be removed, allowing the module to slide out under the X Frame. Do this with the broken module in your drone and replace it with the NEW module you just removed from the X Frame and re-attach with the 4 screws (highlighted in the picture below).
View attachment 86501
Using a reasonably sharp PLASTIC edge (a picnic knife will work, don't use anything metal), simply cut the white silicone along the edge of the plug on both sides of the plug, leaving the glue in place, and pry up on the plug to unplug the broken module. The "glue" is there to keep vibration from loosening the plug. When re-plugging the New module, simply push the glue away from the plug with the tool used to cut it and plug in the module. When it's well seated, the silicone will move back over the plug edge helping to hold it in place. Be sure to plug in the new module the exact same direction as the old one. I took a Picture of the module to use as a reference before I began so I wouldn't screw it up.
Then reassemble the bottom board in reverse order. Be sure to calibrate the IMU when you are done.
I hope this was helpful, please let me know if I can be of further assistance.