NoMethodError: Projects::PathLocksController#index undefined method `to_i'

Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/878034

NoMethodError: undefined method `to_i' for #<ActionController::Parameters {"size"=>"e7188dfe"} permitted: false>
Did you mean?  to_s
               to_h
  from kaminari-activerecord (1.2.2) lib/kaminari/activerecord/active_record_model_extension.rb:17:in `page'
  from activerecord (7.0.8.4) lib/active_record/relation/delegation.rb:67:in `block in page'
  from activerecord (7.0.8.4) lib/active_record/relation.rb:881:in `_scoping'
  from activerecord (7.0.8.4) lib/active_record/relation.rb:428:in `scoping'
  from activerecord (7.0.8.4) lib/active_record/associations/collection_proxy.rb:1119:in `scoping'
  from activerecord (7.0.8.4) lib/active_record/relation/delegation.rb:67:in `page'
  from ee/app/controllers/projects/path_locks_controller.rb:17:in `index'

Problem

page parameter format is not verified.