Yes if you have 0 card left in your deck and you cant draw anymore you will be lose the duel automatically
this is one of game rules its not glitch or anything
to avoid this try to not draw cards like crazy and keep your deck cards as much you can [:thumbu:]