Welcome to the community, @andrewsadjieteh! You could always validate your XLSForm through this online validator? The online validator should help you identify any syntax issues that are affecting the form deployment.
This post discussed previously should help you use the online validator.
When looking at your error message it seems like the issue is from the if-statement. You may be using If instead of using if. Note: use of small i instead of use of capital I.