As a tenant you can always terminate the rent without giving a reason. The only exception to this is if you have concluded a contract for a definite period of time (this is often the case with subletting). In that case you are obliged to rent at least the entire period for which the contract applies. In any case, you always have to comply with the legal notice period.