1. An automatic analyzer comprising: a dispensing mechanism including a dispensing nozzle; a plurality of containers; a plurality of reaction containers; a photometric mechanism configured to emit light and detect light that has been transmitted through a reaction container containing a solution, of the plurality of reaction containers; a pressure sensor that detects pressure inside the dispensing nozzle of the dispensing mechanism; a storage unit that stores multiple items of reference data that are respectively associated with multiple items of comparison data, the comparison data is pressure data related to a known ingredient within a reference dispensing target; a controller connected to the dispensing mechanism, the photometric mechanism, the pressure sensor, and the storage unit, the controller programmed to: control the dispensing mechanism to dip a portion of the dispensing nozzle into the reference dispensing target having the known ingredient contained in a first container of the plurality of containers, aspirate the reference dispensing target, and discharge the reference dispensing target into a first reaction container of the plurality of reaction containers, and control the pressure sensor to detect a pressure inside the dispensing nozzle to obtain a first detection result, calculate multiple first statistical distances between respective multiple items of comparison data stored in the storage unit and the first detection result from the pressure sensor, and select one item of the reference data, from the multiple items of the reference data stored in the storage unit, that is associated with an item of comparison data, of the multiple items of comparison data, that has a shortest calculated first statistical distance between the multiple items of comparison data and the first detection result, control the dispensing mechanism to dip a portion of the dispensing nozzle into a biological sample target contained in a second container of the plurality of containers, aspirate the biological sample target, and discharge the biological sample target into a second reaction container of the plurality of reaction containers, and control the pressure sensor to detect a pressure inside the dispensing nozzle to obtain a second detection result, calculate a second statistical distance between the selected item of reference data and the second detection result from the pressure sensor and determine whether there is an abnormality of discharging the biological sample target based on whether the second statistical distance is less than or equal to a predetermined threshold value.