No you don’t need to stay 6 months. Legally in Scotland it’s one month, it’s been like this for a while now. A landlord or agency may try their luck and write in the contract that you have a minimum rental term of 6/12 months but this is totally unenforceable.