Does long Christian liturgy affect ones relationship with God? Are they good or is it a sin?
"Liturgy" is just a fancy word for the public worship service. There is no fixed length for how long a worship service is to be. The usual teasing reminder that preachers point out is that Paul preached to midnight one time (Acts 20:7) and the lessons haven't gone on nearly that long.
Congregations typically have a target time for services so people can plan out events and meals, but what that time is depends on the congregation.
If you find yourself impatient to leave, then it would be better to ask yourself why you are not getting anything out of the service.
"For a day in Your courts is better than a thousand. I would rather be a doorkeeper in the house of my God than dwell in the tents of wickedness" (Psalms 84:10).
"I was glad when they said to me, "Let us go into the house of the LORD"" (Psalms 122:1).
"The inhabitants of one city shall go to another, saying, "Let us continue to go and pray before the LORD, and seek the LORD of hosts. I myself will go also." Yes, many peoples and strong nations shall come to seek the LORD of hosts in Jerusalem, and to pray before the LORD.' Thus says the LORD of hosts: 'In those days ten men from every language of the nations shall grasp the sleeve of a Jewish man, saying, "Let us go with you, for we have heard that God is with you"'" (Zechariah 8:21-23).