FWIW, I’ve in the past installed two versions of CFP (currently using 2.4) and had no problems installing (nor subsequent) with Avast left on.
If you want to go by the book though and turn it off, or even exit it, do so, (pause or stop protection) and it would be wise to be offline while doing that.