there is another known issue of the vacuum pump seal going bad and allowing oil into the brake booster that can cause a problem and yet another issue where the booster seal can leak
there is a service bulletin for the booster leak
there is a 10 year special coverage on the vacuum pump "if" IT fails diagnostics and or throws a "service brake assist" in the dic therefore setting a code.
https://static.nhtsa.gov/odi/tsbs/2019/MC-10167479-9999.pdf
I would pull the vacuum line off and check if there is fluid inside or if it is dry
If the vacuum pump fails diagnostics it's free under the special coverage for 2015-2018 for 10 years