Automatically assign highest value in input field when exceeding maximum, where maximum value change with time?

I'm looking for a way to make it simple for users to assign the maximum value in an input field if the user inputs a value exceeding the maximum value. Possibly also help them assign this number, or at least guide them. I assume automatically assigning the maximum value is a bad approach? But please let me know why that is the case.

Here is a vague and brief context:

  • The user input numbers in text input fields
  • The user should be able to name their own price for different items (a price they're willing to pay/can afford).
  • Each of the items has their own maximum value. The price varies depending on time. The maximum value changes due to inventory/stock (these are digital goods) and may be a number that is not rounded up nicely, such as "15 186".
  • In one page, there will be at around 25 items to input price on.

I've looked at this previous question and found that the answer doesn't fully satisfy my situation: Automatically limiting or correcting numeric input field values

What if the user wants to assign the maximum value for all 25 fields? It would be too much error handling to deal with for the user.

I also found this solution somewhat inspiring, but it doesn't fully apply to my situation as well. I wouldn't want to display the price range all at once for all 25 items: Best way for a user to specify budget/price range?

Here are some of my ideas which I hope can be improved. I'm of course also fully open to other approaches!

Approach 1

Clicking the blue text would assign the max value available.

enter image description here

Approach 2

Show the maximum value in the help text (perhaps even combine this with the suggestion above)

enter image description here