It will depend on the length of the term. If it is a couple months they are not likely to make you move out. If longer then their are lots of people who would need your flat.
No you won't lose your flat.If on benefits contact your council.Most councils work on a 3 months grace but you have to let them know.