Add diagnostics used to take corrective action when releasing buildInfoJson (#16404)

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>