You need NOC from your Y Company to change your profession and if Y doesn't have Engineer visa then you will not be able to change it. You should wait minimum one year to change the profession and you should check it with your Y Company because they are the only one now who can help you.