As the error mentions that your parameter should be an integer and not Text as you are defining it :
Based on the documentation :
Data types can be String, Bool, or Array. Optionally, you can also assign a default value to the variable. This value will be used as the initial value of the variable at the start of a pipeline run
You need to convert it in the expression using int()
function.