the pageSize property of a table is not configurable, it is usually determined by the height of the table component and other table options set up.
If you are looking at server-side table pagination, this can be done.
I have written an APP (attached) to help with this, It should dynamically change the pageSize, do let me know if it works for you