there shouldn't be any problem with signing on for a short period, then signing off to go abroad, and then signing on again.
my advice would be to not tell them this is your plan when you first make the claim – it's not a question they ask as part of the application, so there's no need to volunteer it
When you reapply, you will be asked what you've been up to, but your claim will only be sanctioned if you'd left a job voluntarily or been sacked. Going away on a preplanned break is perfectly acceptable.
you might also be able to get help with rent and council tax. this will depend on your total household income and savings, it's not as simple as a cut off point for income as suggested above. There is a cut off for savings which is £16,000
(my job is giving benefits advice, in case your wondering whether to trust this…)