You should create as many lessons as necessary to educate the students on the topic that you teach. There are no general rules. Some topics will require 2-3 hours of content, some topics will require 40-50 hours. Udemy requires a minimum of 30 minutes but it is unlikely your course will be popular with just the minimum.
Thanks alot