Another factor to consider is that the effects of PEEP aren't uniform, especially if different areas have different compliance.
Areas of the lung that are affected by pneumonia may not be recruitable, but normal areas may become overdistended with too much PEEP. This too can worsen intra-pulmonary shunt & cause hypoxemia.
9/