I’m not saying the presence of avast did not cause this, just that on safe mode avast is not loaded and it shouldn’t block the computer in any way. More, even in normal mode, avast does not block a computer to boot. Something else is conflicting (or an infection) and avoids logging. Did you try to boot on last-known-good configuration?