Car is very inefficent when running that cold, what you think is too warm is actually what the car loves.
There is no need to ever run a colder thermostat while stock. Gas mileage and overall performance will go down when the motor runs too cold and like you noticed its sets the check engine light off.