I don’t have a service manual for a Barina but I’d guess the ECU provides a 5V reference for the BAP/MAP sensor to operate. The ECU reads the BAP sensor signal wire (which may be some voltage between a specified upper and lower limit relative to the 5V reference, normally 4.5V to 0.5V). Barometric pressure sensor would return a specific voltage for a given air pressure and often the workshop manual would lists sensor output voltage vs pressure in a graph which can be used to check its accuracy.
So the error can be (1) the ECU 5V reference isn’t 5V which throws off the reading, (2) the wire has some resistance to it (possibly due to dirty or corroded contacts) which throws off the reading, (3) the earth connector is lose or corroded throwing off the reading, (4) the reference voltage or earth wire has a resistive short to earth, (5) the BAP sensor itself is out of calibration so throws off the reading or (5) another sensor that the ECU uses to cross check stuff is out of spec throwing out the math which results in the ECU failing the sanity check for what it’s seeing (but you'd think it would point to that other sensor though that’s not a given)..
As such, a simple continuity check may not be sufficient to rule out wiring or connector issues, ecu voltage reference issues or earthing issues. You really need to check the wire & connector resistance end to end at high accuracy and hopefully the manufacture has speced the allowable limits.
Problem is that sometimes it can be a pita and a lengthy process to localise the fault so many resort to the easy thing first which is change a part, then another part, etc. but this can be costly way to fault find… The correct diagnostic workflow is specified within the workshop manual and should be followed in some form or other since the DTC is a start point for the workflow
The following video indicates that BAP/MAP faults could be caused by MAF fault due to the way the wiring and ECU logic works sensors while the other video indicates that the similar part numbers may not be fully cross compatible and suggests one buy from a dealer using your VIN.