no they won't void ur employment. just declare that you don't have menstruation for months but haven't done a test yet.
And beside it's 5months, you still have 4 months to work. However, you cannot claim a company benefit because of tenureship rule but you can still claim ur sss ml benefit.