If the Windows Security is saying Avast is switched off, surely you should be switching Avast on rather than switching Defender off. As the act of switching Avast on should switch Defender off.
Obviously in the image I posted it shows Avast is on, if it weren't I would have thought that screen would allow you to switch it on ?
In that screen shot it only shows the Windows Defender periodic scan, that would be what you are turning off. Can you attach a screenshot of what you see in that Virus and Threat Protection screen.
It sounds like there is some miscommunication between windows security and Avast as you are saying it is running. You could first try a shutdown and restart if the OS, if that doesn't resolve this mis communication, try an Avast Repair.