Downgrade Oreo to nougat

That depends on the device. Also, you'll need to take measures to prevent the upgrade from reinstalling. It might be easier to resolve whatever issue you have with the OS, why do you want to revert?