You need to pass a null value, I think "''" is a blank string (which is different from null). I'm actually running into the same issue, so will just post my stream of thoughts here as I solve for this.
I have this code to solve for a similar issue for my DateTime columns. The if statement looks at the value, and if it equals '' (a blank string, I think?), it will pass a "null" value instead.
if(equals(items('Apply_to_each_row')?['Date Column'], ''), null, addDays('1899-12-30', int(items('Apply_to_each_row')?['Date Column']), 'MM-dd-yyyy'))

One thing to note is I'm running these expressions in a compose step, and then passing that output along. I don't know if this is necessary, or if you can run the expression directly on the output. (In this use-case, I'm bringing data from an Excel table into a Sharepoint List, to give some context).
This fixes the issues for datetime. Let's see if we can change it to work for a number field.
First attempt:
if(equals(items('Apply_to_each_row')?['Number Column'], ''), null, items('Apply_to_each_row')?['Number Column'])
This should see if the value is equal to '', and if it is, changes the value to null, otherwise it will use the number from the column. I'll also skip using the compose action and write this expression directly into the step I need it in.

Here, you can see the above expression being used in the Ticket Count column (which is a number column in my Sharepoint List). This mapping was passing the error you pasted in previous flows, so will test and see if this now passes.
The test passed and the previously unimported rows (that gave the same error as above) have now been imported/updated correctly.
TL;DR
if(equals(items('Apply_to_each_row')?['Number Column'], ''), null, items('Apply_to_each_row')?['Number Column'])
Using the above function should work. Just be sure to select the column correctly and then test it against the '' output. This will pass a null value if it finds an empty cell passing a '' string.