If you haven’t already done so, you should read the applicable part of IRS Pub 970, Tax Benefits for Education. The language about exceptions to the 10% “penalty” (additional tax) on non-qualified 529 distributions can be found on page 62.
2020 Publication 970 (irs.gov)
No, grants and scholarships cannot also be leveraged to avoid taxes on non-qualified distributions.