GitLab throws a 500 when changing weight of issue

Summary

When inputting an obnoxious value, example 1000000000000000000000 into the weight of an issue, GitLab throws a 500.

Steps to reproduce

In a closed issue, set the weight to 1000000000000000000000000000000000

Example Project

https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/4817

What is the current bug behavior?

GitLab throws a 500

What is the expected correct behavior?

This is invalid input, which should be considered a Bad Request by the user. The user should see an HTTP400. Bonus points if we know why the input is invalid.

Relevant logs and/or screenshots

I am unable to find the associated error in Sentry

Output of checks

bug happens on GitLab.com

Assignee Loading
Time tracking Loading